package io.renren.modules.erp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.modules.erp.entity.OrgaUserRel;
import io.renren.modules.erp.entity.SystemConfig;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface SystemConfigService  extends IService<SystemConfig> {

    SystemConfig getSystemConfig(long id)throws Exception ;
    List<SystemConfig> getSystemConfig()throws Exception ;
    List<SystemConfig> select(String companyName, int currPage, int pageSize)throws Exception ;
    Long countSystemConfig(String companyName)throws Exception ;
    int insertSystemConfig(String beanJson, HttpServletRequest request) throws Exception;

    int updateSystemConfig(String beanJson, Long id, HttpServletRequest request) throws Exception;

    int deleteSystemConfig(Long id, HttpServletRequest request)throws Exception ;

    int batchDeleteSystemConfig(String ids, HttpServletRequest request)throws Exception ;

    int checkIsNameExist(Long id, String name) throws Exception;
    int batchDeleteSystemConfigByIds(String ids,Long userId)throws Exception;
    boolean getDepotFlag() throws Exception;
    boolean getCustomerFlag() throws Exception ;
    boolean getMinusStockFlag() throws Exception ;
}
